/* 发表评论 */
.page-write-comments {
  background: #f9f9f9;
  margin-top: 2px;
  margin-bottom: -40px;
  padding-bottom: 40px;

  .comments-box {
    background: #fff;
    padding: 30px 20px;
    box-shadow: 0 0 4px rgba(0, 0, 0, .05);
    display: flex;

    .goods-msg {
      padding: 20px 50px 20px 30px;
      width: 278px;
      border-right: 1px dotted #ddd;

      .img {
        width: 100px;
        height: 100px;
        margin: auto;
        font-size: 0;

        img {
          width: 100%;
          height: 100%;
        }
      }

      .name {
        display: block;
        margin-top: 15px;
        line-height: 20px;
        margin-bottom: 10px;
        font-size: 13px;
        word-break: break-word;

        &:hover {
          color: #e1251b;
        }
      }

      .sku {
        color: #999;
        word-break: break-word;
      }

      .order-number {
        margin-top: 30px;
        color: #999;

        .number {
          color: #000;
          font-family: arial;

          &:hover {
            color: #e1251b;
          }
        }
      }

      .deal-time {
        margin-top: 5px;
        color: #999;

        .number {
          font-family: arial;
        }
      }
    }

    .operation {
      padding: 20px 40px 0;
      margin-left: 20px;
      flex: 1;

      .item {
        display: flex;
        margin-bottom: 30px;

        .tit {
          width: 80px;
          line-height: 38px;
        }

        .star-box {
          display: flex;
          align-items: center;

          .text {
            margin-right: 10px;
          }

          .stars {
            display: flex;
            height: 14px;
            align-items: center;

            .star {
              width: 14px;
              height: 14px;
              background: url(@/assets/images/icons.png) no-repeat;
              margin-left: 3px;
              cursor: pointer;
              background-position: -42px -138px;
            }

            .star-gray {
              width: 14px;
              height: 14px;
              background: url(@/assets/images/icons.png) no-repeat;
              margin-left: 3px;
              cursor: pointer;
              background-position: -61px -138px;
            }
          }
        }

        .comments {
          flex: 1;
          display: flex;
          flex-wrap: wrap;
          margin-top: -20px;

          .c-item {
            padding: 10px 15px;
            line-height: 16px;
            border: 1px solid #eee;
            margin: 20px 15px 0 0;
            -moz-transition: all 0.2s;
            -webkit-transition: all 0.2s;
            -o-transition: all 0.2s;
            transition: all 0.2s;
            cursor: pointer;
            min-width: 80px;
            text-align: center;

            &:nth-child(5n) {
              margin-right: 0;
            }

            &:hover {
              border-color: #e1251b;
              color: #e1251b;
            }
          }

          .c-item.active {
            border-color: #e1251b;
            color: #e1251b;
          }
        }

        .des-box {
          flex: 1;
          position: relative;
          border: 1px solid #eee;
          padding: 7px 10px 35px 10px;

          .des {
            width: 100%;
            height: 80px;
            line-height: 20px;
            border: 0;
            font-size: 12px;
            font-family: "微软雅黑";
            resize: none;
          }

          .des-tip {
            position: absolute;
            bottom: 5px;
            left: 10px;
            right: 10px;
            width: auto;
            background: #fff;
            height: 25px;
            line-height: 25px;
            text-align: right;
            color: #999;
          }
        }

        .des-content {
          flex: 1;
          line-height: 22px;
          padding-top: 8px;

          span {
            white-space: pre-wrap;
            overflow: hidden;
            text-overflow: ellipsis;
            word-break: break-word;
            display: -webkit-box;
            -webkit-box-orient: vertical;
            position: relative;
            line-height: 1.5;
            word-wrap: break-word;
          }
        }

        .img-box {
          flex: 1;
          display: flex;
          flex-wrap: wrap;
          align-items: center;
          margin: 0 0 -15px -15px;

          .file-img {
            display: block;
            border: 1px solid #eee;
            width: 110px;
            height: 110px;
            text-align: center;
            line-height: 110px;
            font-size: 24px;
            font-family: arial;
            color: #ccc;
            margin: 0 0 15px 15px;

            img {
              width: 100%;
              height: 100%;
              vertical-align: top;
            }
          }

          .img-des {
            color: #999;
            width: 112px;
            text-align: center;
            margin-bottom: 15px;
          }
        }
      }
    }
  }

  .btn-box {
    background: #fff;
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .05);

    .agree-box {
      cursor: pointer;
      margin-left: 20px;

      .text {
        margin-left: 5px;
      }
    }

    .btn {
      padding: 0 40px;
      line-height: 38px;
      color: #fff;
      background: #e1251b;
      border-radius: 2px;

      &:hover {
        opacity: 0.9;
      }
    }

    .btn.back {
      background: #f9f9f9;
      color: #000;
      border: 1px solid #ddd;
      padding: 0 38px;
      line-height: 36px;

      &:hover {
        opacity: 1;
        background: #fff;
      }
    }
  }
}

/* 发表评论 end */

.page-write-comments {
  &:deep(.img-box) {
    .el-upload--picture-card {
      background-color: #fff;
      border: 1px solid #eee;
      border-radius: 0;
      width: 112px;
      height: 112px;
      line-height: 112px;
      margin: 0 0 15px 15px;

      &:hover {
        border-color: #eee;
      }

      i {
        margin-top: -35px;
        font-size: 20px;
        color: #999;
      }
    }

    .el-upload-list--picture-card {
      .el-upload-list__item {
        border: 1px solid #eee;
        border-radius: 0;
        width: 112px;
        height: 112px;
        margin: 0 0 15px 15px;
      }
    }

    .el-icon-plus {
      width: 20px;
      height: 20px;
    }
  }
}

